<template> </template>

<script>
export default {
  methods: {
    timer() {
      return setTimeout(() => {
        this.getData();
      }, 5000);
    },
  },
  watch: {
    list() {
      this.timer();
    },
  },

  destroyed() {
    clearTimeout(this.timer);
  },
};
</script>

<style></style>
